package com.tensquare.recruit.Dao;

import com.tensquare.recruit.pojo.Enterprise;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface EnterpriseDao extends JpaRepository<Enterprise,String>, JpaSpecificationExecutor<Enterprise> {

//    @Query(value = "sql" ,nativeQuery = true);  sql查询
//    @Modifying   有关线程问题都要加上注解,增删改
    public List<Enterprise> findByIshot_(String ishot);
}
